/**
 * Project Name:dsrs-businessservice-dao
 * File Name:UserFileSpaceMapper.java
 * Package Name:com.bwda.dsrs.businessservice.mapper.dsrs;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 *
 */
package com.bwda.dsrs.filecenter.mapper.dsrs;


import com.bwda.dsrs.filecenter.domain.condition.userfilespace.*;
import com.bwda.dsrs.filecenter.domain.po.userfilespace.UserFileSpacePo;

/**
 * 用户空间配置
 *
 * @author liangjianyong
 * @date 2019 /4/12
 */
public interface UserFileSpaceMapper extends BaseMapper<UserFileSpacePo, UserFileSpaceCondition> {

    /**
     * 更新用户已使用空间大小
     *
     * @param condition condition
     * @return boolean
     */
    boolean updateUseFileSpace(UserFileSpaceUpdateCondition condition);

    /**
     * 同步配置表中信息
     */
    void synSettingToPerson();

    /**
     * 批量更新用户空间大小
     *
     * @param condition condition
     */
    void batchUpdateSettingId(UserSpaceSettingUpdateCondition condition);

    /**
     * 更新组织信息变更
     *
     * @param userFileSpaceSettingCondition user file space setting condition
     * @return boolean
     */
    boolean updateSettingId(UserFileSpaceSettingCondition userFileSpaceSettingCondition);

    /**
     * 新增组织配置时调用
     *
     * @param condition condition
     */
    void whenAddOrgSetting(ChangeSettingIdCondition condition);

}